package com.love.marriage.identityVerification.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.common.interfaces.permission.DataPermission;
import com.love.marriage.identityVerification.entity.IdentityVerification;
import com.love.marriage.identityVerification.vo.IdentityVerificationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  身份认证表 mapper
 * author:       alex
 * createDate:   2024-10-13 09:15:21
 * version:      1.0.0
 */
@Mapper
public interface IdentityVerificationMapper extends BaseMapper<IdentityVerification> {

    @DataPermission(table = "identity_verification_t")
    Page<IdentityVerificationVo> getPage(Page<IdentityVerificationVo> page, @Param("identityVerificationVo") IdentityVerificationVo identityVerificationVo);

    IdentityVerificationVo queryIdentityVerification(@Param("id") Long id);

    IdentityVerificationVo queryIdentityVerificationByUserId(@Param("userId") Long userId);

    List<IdentityVerificationVo> queryIdentityVerificationInfo(@Param("identityVerificationVo") IdentityVerificationVo identityVerificationVo);
}
